package 选课;

public class Student{
    String number;
    String name;
    String sex;
    Course[] course;
    Student(String a,String b,String c,Course[] d){
        number=a;
        name=b;
        sex=c;
        course=d;
    }
    //选课
    void xuanke(Course t) {
        for(int i=0;i<this.course.length;i++){
	    if (course[i]==null) {
	    	course[i]=t;
	    	break;
	    }
	}
    }
}
